package com.heima.homeservicemanagementsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.tags.Tag;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 购物车;
 *
 * @author : http://www.chiner.pro
 * @date : 2025-4-17
 */
@Data
/*@ApiModel(value = "购物车",description = "")*/
@Tag(name = "购物车")
@TableName("shopping_cart")
@EqualsAndHashCode(callSuper = false)
public class ShoppingCart {
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
    @Schema(title = "用户id", description = "")
    private String userId;
    @Schema(title = "选中标志", description = "")
    private String selected = "false";
    @Schema(title = "服务ID", description = "")
    private String serviceId;

    @Schema(title = "展示图片", description = "")
    private String img;

    @Schema(title = "商品名称", description = "")
    private String name;

    @Schema(title = "数量", description = "")
    private Integer number;

    @Schema(title = "价格", description = "")
    private String price;

    @Schema(title = "规格", description = "")
    private String spec;

    @Schema(title = "时间", description = "")
    private String time;
}